var Router = require('koa-router');
var router = new Router();
router.get('/pending', (ctx) => {
  ctx.body = {
    "list": [{
      'avatar': 'http://pic.616pic.com/ys_b_img/00/24/15/TAftl2bTFb.jpg',
      'operateDoctor': 'ming',
      'department': '部门1',
      'professionalTitle': '教授',
      'operateTelephone': '17548961235',
      'description': '这个教授不得了',
      'status': 0
    }, {
        'avatar': 'http://pic.616pic.com/ys_b_img/00/51/29/94qIebjix1.jpg',
        'operateDoctor': 'ming',
        'department': '部门1',
        'professionalTitle': '教授',
        'operateTelephone': '17548961235',
        'description': '这个教授真的不得了啊不得了',
        'status': 0
    }]
  }
})
router.get('/getDoctorList', (ctx) => {
  ctx.body = {
    "list": [{
      'name': 'ming',
      'age': 20,
      'gender': '男',
      'ID': '13456789101112',
      'doctor': 'pro doctor',
      'surgery': 'shoushu',
      'expectTime': '2018-03-12',
      'telephone': '9874562122',
      'origin': 'ori 12'
    }]
  }
})
router.post('/postForm', (ctx) => {
  console.log(ctx.request.body);
  ctx.body = {
      'message': 'success'
  }
})

module.exports = router.routes();